
#include <iostream>
#include <cmath>
#include <algorithm>

using namespace std;
int a, b;
int ansa, ansb;
int main()
{
    cin >> a >> b;
    int Max = 0;
    if (a < 0 && b < 0)
    {
        ansa = ansb = 0;
        cout << ansa << ' ' << ansb << endl;
        cout << "-_-";

    }
    else if (a > 0 && b > 0)
    {
        Max = max(a, b);
        ansa = Max;
        ansb = a + b;
        cout << ansa << ' ' << ansb << endl;

        cout << "^_^";
    }
    else if (a < 0 || b < 0)
    {
        Max = max(a, b);
        ansa = Max;
        if (a + b < 0)
            ansb = 0;
        else
            ansb = a + b;
        cout << ansa << ' ' << ansb << endl;

        cout << "T_T";
    }
    return 0;
}
